package com.pro.service.imple;
/*
 *   赵 22/1/7
 *   用户
 * */
import com.pro.mapper.UserMapper;
import com.pro.pojo.*;
import com.pro.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImple implements UserService {

    @Autowired
    private UserMapper userMapper;

    //赵 22/1/7 获取所有前端用户 getUsers
    @Override
    public List<JsBeforeUser> getUsers(JsBeforeUser jsBeforeUser) {
        return userMapper.getUsers(jsBeforeUser);
    }

    //赵 22/1/9 修改用户信息 editUser JsBeforeUser jsBeforeUser
    @Override
    public Boolean editUser(JsBeforeUser jsBeforeUser) {
        return userMapper.editUser(jsBeforeUser);
    }
    //赵 22/1/10 添加用户封禁信息 shutDown JsClosure jsBeforeUser
    @Override
    public Boolean shutDown(JsClosure jsBeforeUser) {
        return userMapper.shutDown(jsBeforeUser);
    }
    //赵 22/1/10 改变用户状态 editStatus Integer userId
    @Override
    public Boolean editStatus(Integer userId) {
        return userMapper.editStatus(userId);
    }
    //赵 22/1/10 获取进思用户 getJinsiUsers JsUserDevelopment jsUserDevelopment
    @Override
    public List<JsUserDevelopment> getJinsiUsers(JsUserDevelopment jsUserDevelopment) {
        return userMapper.getJinsiUsers(jsUserDevelopment);
    }
    //赵 22/1/10 修改进思用户信息 editJinsiUser JsUserDevelopment jsUserDevelopment
    @Override
    public Boolean editJinsiUser(JsBeforeUser jsBeforeUser) {
        return userMapper.editJinsiUser(jsBeforeUser);
    }
    //赵 22/1/11 修改进思用户，进思用户表信息  editJinsiUserJ JsUserDevelopment jsUserDevelopment
    @Override
    public Boolean editJinsiUserJ(JsUserDevelopment jsUserDevelopment) {
        return userMapper.editJinsiUserJ(jsUserDevelopment);
    }
    /*
     *   赵 22/1/11 查询非进思用户的所有学生 getWrongJinsiUsers
     * */
    @Override
    public List<JsBeforeUser> getWrongJinsiUsers(JsBeforeUser jsBeforeUser) {
        return userMapper.getWrongJinsiUsers(jsBeforeUser);
    }
    /*
     *   赵 22/1/11 查询零消费的所有用户||检索||高级检索 getZeroConsumptionUsers JsUserDevelopment jsUserDevelopment
     * */
    @Override
    public List<JsBeforeUser> getZeroConsumptionUsers(JsBeforeUser jsBeforeUser) {
        return userMapper.getZeroConsumptionUsers(jsBeforeUser);
    }
    /*
     * create by: 赵自强
     * create time: 2022/1/12 11:28
     * @return com.pro.pojo.JsonData
     * 获取已封禁用户信息 getShutDownUsers JsClosure jsClosure
     */
    @Override
    public List<JsClosure> getShutDownUsers(JsClosure jsClosure) {
        return userMapper.getShutDownUsers(jsClosure);
    }
    /*
     * create by: 赵自强
     * create time: 2022/1/12 13:46
     * @return com.pro.pojo.JsonData
     * 解封用户 unsealUser Integer userId,Integer status
     */
    @Override
    public Boolean unsealUser(Integer userId, Integer status) {
        return userMapper.unsealUser(userId,status);
    }
    /*
     * create by: 赵自强
     * create time: 2022/1/12 14:36
     * @return com.pro.pojo.JsonData
     * 添加封禁记录 addUnsealRecord JsUnseal jsUnseal
     */
    @Override
    public Boolean addUnsealRecord(JsUnseal jsUnseal) {
        return userMapper.addUnsealRecord(jsUnseal);
    }
    /*
     * create by: 赵自强
     * create time: 2022/1/12 15:08
     * @return com.pro.pojo.JsonData
     * 获取解封记录 getUnsealRecord JsUnseal jsUnseal
     */
    @Override
    public List<JsUnseal> getUnsealRecord(JsUnseal jsUnseal) {
        return userMapper.getUnsealRecord(jsUnseal);
    }
    /*
     * create by: 赵自强
     * create time: 2022/1/12 15:09
     * @return com.pro.pojo.JsonData
     * 根据id删除封禁记录 delUnsealRecord Integer id
     */
    @Override
    public Boolean delUnsealRecord(Integer id) {
        return userMapper.delUnsealRecord(id);
    }
    /*
     * create by: 赵自强
     * create time: 2022/1/13 19:05
     * @return com.pro.pojo.JsonData
     * 判断用户是否为进思用户 determineUser Integer userId
     */
    @Override
    public List<JsUserDevelopment> determineUser(Integer userId) {
        return userMapper.determineUser(userId);
    }
    /*
     * create by: 赵自强
     * create time: 2022/1/13 20:22
     * @return com.pro.pojo.JsonData
     * 添加进思用户 addJinsiUsers JsUserDevelopment jsUserDevelopment
     */
    @Override
    public Boolean addJinsiUsers(JsUserDevelopment jsUserDevelopment) {
        return userMapper.addJinsiUsers(jsUserDevelopment);
    }
    /*
     * create by: 赵自强
     * create time: 2022/1/14 9:37
     * @return com.pro.pojo.JsonData
     * 获取优惠券列表 giveCoupon
     */
    @Override
    public List<Coupon> giveCoupon() {
        return userMapper.giveCoupon();
    }
    /*
     * create by: 赵自强
     * create time: 2022/1/14 10:31
     * @return com.pro.pojo.JsonData
     * 添加用户优惠券 addCcouponUsed CouponUsed couponUsed
     */
    @Override
    public Boolean addCcouponUsed(CouponUsed couponUsed) {
        return userMapper.addCcouponUsed(couponUsed);
    }
    /*
     * create by: 赵自强
     * create time: 2022/1/14 13:40
     * @return com.pro.pojo.JsonData
     * 获取创作者申请数据 getCreatorApply JsApplyRecord jsApplyRecord
     */
    @Override
    public List<JsApplyRecord> getCreatorApply(JsApplyRecord jsApplyRecord) {
        return userMapper.getCreatorApply(jsApplyRecord);
    }
    /*
     * create by: 赵自强
     * create time: 2022/1/14 15:23
     * @return com.pro.pojo.JsonData
     * 改变创作者申请状态 applyAdopt JsApplyRecord jsApplyRecord
     */
    @Override
    public Boolean updateApply(JsApplyRecord jsApplyRecord) {
        return userMapper.updateApply(jsApplyRecord);
    }
    /*
     * create by: 赵自强
     * create time: 2022/1/14 15:32
     * @return com.pro.pojo.JsonData
     * 添加用户权限 addJurisdiction JsUserRole jsUserRole
     */
    @Override
    public Boolean addJurisdiction(JsUserRole jsUserRole) {
        return userMapper.addJurisdiction(jsUserRole);
    }
    /*
     * create by: 赵自强
     * create time: 2022/1/15 9:02
     * @return com.pro.pojo.JsonData
     * 获取申请通过&&驳回列表 getAdoptAndReject JsApplyRecord jsApplyRecord
     */
    @Override
    public List<JsApplyRecord> getAdoptAndReject(JsApplyRecord jsApplyRecord) {
        return userMapper.getAdoptAndReject(jsApplyRecord);
    }
    /*
     * create by: 赵自强
     * create time: 2022/1/15 9:54
     * @return com.pro.pojo.JsonData
     * 获取审核记录表 getAuditRecord JsAuditLog jsAuditLog
     */
    @Override
    public List<JsAuditLog> getAuditRecord(JsAuditLog jsAuditLog) {
        return userMapper.getAuditRecord(jsAuditLog);
    }
    /*
     * create by: 赵自强
     * create time: 2022/1/15 10:48
     * @return
     * 删除日志记录 delAuditRecord Integer auditLogId
     */
    @Override
    public Boolean delAuditRecord(Integer auditLogId) {
        return userMapper.delAuditRecord(auditLogId);
    }




}
